﻿using UnityEngine;
using System.Collections;

public class GUI_Titlescript : MonoBehaviour {

	private float wedlerzahl;
	private float sinus;
	public float factor = 3;


	// Use this for initialization
	void Start ()
	{
	


	}
	
	// Update is called once per frame
	void Update ()
	{

		wedlerzahl = wedlerzahl +0.05f;
		if (wedlerzahl >= 360)	wedlerzahl = 0;

		sinus = Mathf.Sin (wedlerzahl);
		transform.eulerAngles = new Vector3 ((factor * sinus)+35, 0, 0);

	}
}
